<%--
  Created by IntelliJ IDEA.
  User: lc
  Date: 2021/11/1
  Time: 15:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>


<table border="1" cellspacing="0" width="80%">


    <a href="add.jsp">添加</a><br>

    <tr>
        <th>编号</th>
        <th>姓名</th>
        <th>城市</th>
        <th>年龄</th>

    </tr>

    <c:forEach var="student" items="${students}">

        <tr>
            <th>${student.id}</th>
            <th>${student.name}</th>
            <th>${student.city}</th>
            <th>${student.age}</th>
          <th> <a href="/UpdateServlet?id=${student.id}">修改</a><a href="/DeleteServlet?id=${student.id}">删除</a></th>
        </tr>

    </c:forEach>




</table>



</body>
</html>
